
#define _CRT_SECURE_NO_WARNINGS 1


struct stu
{
	char name[10];
	int age;
};

#include <stdlib.h>
#include <stdio.h>


int cmp(const void* e1, const void* e2)
{
	
	return ((struct stu*)e1)->age - ((struct stu*)e2)->age;
}


void test()
{
	struct stu S[2] = { {"zhanags",115},{"zheng",61}};
	
	qsort(S, 2, sizeof(S[0]), cmp);
	printf("0");

}


int main()
{
	test();
	//struct stu S[2] = { {"zhanags",15},{"zheng",61} };

	return 0;
}